package com.thinkit.bigdata.web.service.sys;

import com.thinkit.bigdata.web.model.result.HtmlResult;
import com.thinkit.bigdata.web.model.sys.SysApprovalTaskSearch;
import com.thinkit.bigdata.web.model.sys.SysExportUserParam;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.lang.reflect.InvocationTargetException;

public interface SysApprovalTaskService {

    HtmlResult exportTaskSearch(SysApprovalTaskSearch task) throws InvocationTargetException, IllegalAccessException;

    HtmlResult exportTaskParamSearch(Long id);

    HtmlResult addExportTask(HttpServletRequest request);

    HtmlResult updateExportTask(Long id, int status, String note, HttpServletResponse response) throws IOException;

    void downloadFileByTaskId(String logTxt, SysExportUserParam param, HttpServletResponse response) throws IOException;

    HtmlResult exportFileTask(Long id, HttpServletResponse response);

    HtmlResult delExportTask(String id);
}
